import request from '@/utils/request'

// 查询工控机配置列表
export function listGongkongjipeizhi(query) {
  return request({
    url: '/apis/gongkongjipeizhi/list',
    method: 'get',
    params: query
  })
}

// 查询工控机配置详细
export function getGongkongjipeizhi(id) {
  return request({
    url: '/apis/gongkongjipeizhi/' + id,
    method: 'get'
  })
}

// 新增工控机配置
export function addGongkongjipeizhi(data) {
  return request({
    url: '/apis/gongkongjipeizhi',
    method: 'post',
    data: data
  })
}

// 修改工控机配置
export function updateGongkongjipeizhi(data) {
  return request({
    url: '/apis/gongkongjipeizhi',
    method: 'put',
    data: data
  })
}

// 删除工控机配置
export function delGongkongjipeizhi(id) {
  return request({
    url: '/apis/gongkongjipeizhi/' + id,
    method: 'delete'
  })
}
